package cn.hl.hm.logic.serviceImpl;

import cn.hl.hm.dao.RechargeRecoardOfflineMapper;
import cn.hl.hm.entity.RechargeRecoardOffline;
import cn.hl.hm.logic.service.IRechargeRecoardOfflineService;
import cn.hl.hm.util.paging.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 线下保全金
 * Created by xianghan on 18/1/8.
 */
@Service
public class RechargeRecoardOfflineServiceImpl implements IRechargeRecoardOfflineService{
    @Autowired
    private RechargeRecoardOfflineMapper rechargeRecoardOfflineMapper;

    @Override
    public int addRechargeRecoardOffline(RechargeRecoardOffline rechargeRecoardOffline) {
        return rechargeRecoardOfflineMapper.insertSelective(rechargeRecoardOffline);
    }

    @Override
//    public List<RechargeRecoardOffline> selectList(Integer pageId, Integer pageCount, String beginTime, String endTime, String orderCode, String plateNumber, String userPhone) {
    public List<RechargeRecoardOffline> selectRROListByPage(PageInfo pageInfo) {
        return rechargeRecoardOfflineMapper.selectRROListPage(pageInfo);
    }

    @Override
    public List<RechargeRecoardOffline> selectByPrimaryKeySelective(RechargeRecoardOffline rechargeRecoardOffline) {
        return rechargeRecoardOfflineMapper.selectByPrimaryKeySelective(rechargeRecoardOffline);
    }

    @Override
    public int updateByPrimaryKeySelective(RechargeRecoardOffline record) {
        return rechargeRecoardOfflineMapper.updateByPrimaryKeySelective(record);
    }
}
